package com.feynman.pattern.decorator.battercake.v1;

public class BattercakeTest {
    public static void main(String[] args) {
        Battercake battercake = new Battercake();
        System.out.println(battercake.getMsg()+" 总价格："+battercake.getPrice());

        BattercakeEgg battercakeEgg = new BattercakeEgg();
        System.out.println(battercakeEgg.getMsg()+" 总价格："+battercakeEgg.getPrice());

        BattercakeEggSuasage battercakeEggSuasage = new BattercakeEggSuasage();
        System.out.println(battercakeEggSuasage.getMsg()+" 总价格："+battercakeEggSuasage.getPrice());
    }
}
